package com.szrt.day20161019.point07.service.impl;

import com.szrt.day20161019.point07.service.CarService;
import com.szrt.day20161019.point07.service.StudentService;

public class StudentServiceImpl implements StudentService,CarService{

	@Override
	public void listen() {
		System.out.println("我上课认真听课");
	}

	@Override
	public String writeHomeWork(String name) {
		return name + "写好了...";
	}

	/**
	 * 打印出年龄
	 * @param age
	 * @return
	 */
	@Override
	public int printAge(int age) {
		System.out.println("我今年"+age+"岁....");
		return age;
	}

	@Override
	public boolean drive() {
		return false;
	}

}
